<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <!-- <meta http-equiv="X-UA-Compatible" content="IE=edge"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录</title>
    <link rel="stylesheet" href="../static/css/normalize.css" />
    <link rel="stylesheet" href="../static/css/swiper.min.css" />
    <link rel="stylesheet" href="../static/css/mine.css" />
    <style>
		input {
			border: 1px solid #ccc;
			padding: 5px;
			font-size: 16px;
			font-family: Arial, sans-serif;
		}
	</style><!--[type="text"]-->
</head>

<body>
    <section class="warp">
        <!-- 头部区域 -->
        <header class="header">登录</header>

        <!-- 导航栏部分 -->
        <nav class="nav">
            <a class="my">
                <img src="../static/icons/icon1.png" alt="" />
<!--                <span>账号密码登录</span>-->
            </a>

            <a class="item">
            {% if error %}
            <p style="color: red">{{ error }}</p>
            {% endif %}
            <form method="post" action="{{ url_for('login') }}">
                <label>账号:</label>
                <input type="text" name="username"><br><!--account-->
                <label>密码:</label>
                <input type="password" name="password"><br>
                <br>
                <div style="text-align:center">
                    <button type="submit">登录</button>
                </div>
            </form>
            </a>

        </nav>

    </section>
    <footer class="footer">
        <a href="index.html" class="item">
            <img src="../static/icons/首页1.png" alt="" />
            <p>首页</p>
        </a>
        <a href="machine.html" class="item">
            <img src="../static/icons/分类1.png" alt="" />
            <p>设备控制</p>
        </a>
        <a href="history.html" class="item">
            <img src="../static/icons/历史1.png" alt="" />
            <p>历史数据</p>
        </a>
        <a href="mine.html" class="item">
            <img src="../static/icons/我的.png" alt="" />
            <p>我的</p>
        </a>
    </footer>

    <script src="../static/js/flexible.js"></script>
    <script src="../static/js/swiper.min.js"></script>
</body>

</html>
